<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:sistema="http://sistema.com.br/jsf">

	<head>
		<meta http-equiv="Content-Type" content="text/xhtml; charset=ISO-8859-1" />
		<meta http-equiv="CACHE-CONTROL" content="no-cache" />
		<meta http-equiv="Expires" content="-1" />
		<link rel="STYLESHEET" type="text/css" href="/static/css/estilo.css" />
		<script type="text/javascript" src="/static/js/sistema.js" />

		<title>
			<ui:insert name="titulo"/> 
		</title>
		<script type="text/javascript">
			function bodyOnLoad(){
				<ui:insert name="onload"/>
			}
			<ui:insert name="javascript" />
		</script>
		<ui:insert name="head" />
	</head>

	<body onload="bodyOnLoad();">
		<f:view>

			<ui:insert name="modalPanel" />

			<a4j:form id="form">

				<ui:insert name="menu">
					<ui:include src="menu.xhtml" />
				</ui:insert>
				<!-- exibição das mensagens de erro. -->
		 		<div></div>
		 		<a4j:outputPanel ajaxRendered="true" id="painelMensagem" > 
	 				<sistema:mensagem />
		 		</a4j:outputPanel>

				<a4j:outputPanel ajaxRendered="true" layout="block" styleClass="rich-menu-list-border carregando"> 
	 				<a4j:status layout="block" id="status">
	 					<f:facet name="start">
	 						<a4j:outputPanel styleClass="msg de carregar" layout="block">
	 							<h:graphicImage value="../../../static/img/carregando.gif"/>
	 							<rich:spacer width="3"/>
	 							<ui:insert name="carregar"/>
	 						</a4j:outputPanel>
	 					</f:facet>
	 				</a4j:status>
		 		</a4j:outputPanel>
			
				<ui:insert name="keepAl"/>
				<body>
				    <div id="corpo">
				    		<ui:insert name="corpo" />
				    </div>
				</body>
			</a4j:form>
		</f:view>
	</body>
</html>
